home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / What's New? / Development Kits / ColorSync™ 2.0.1 GM / Interfaces / CIncludes / CMPRComponent.h < prev   
Encoding:
C/C++ Source or Header  |  1995-12-12  |  3.1 KB  |  121 lines  |  [TEXT/MPS ]

  1. /*
  2.      File:        CMPRComponent.h
  3.  
  4.      Contains:    ColorSync ProfileResponder Components Interface 
  5.  
  6.      Version:    Technology:    ColorSync 2.0
  7.                  Release:    2.0f3
  8.  
  9.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  10.                  All rights reserved.
  11.  
  12.      Bugs?:        If you find a problem with this file, send the file and version
  13.                  information (from above) and the problem description to:
  14.  
  15.                      Internet:    apple.bugs@applelink.apple.com
  16.                      AppleLink:    APPLE.BUGS
  17.  
  18. */
  19.  
  20. #ifndef __CMPRCOMPONENT__
  21. #define __CMPRCOMPONENT__
  22.  
  23.  
  24. #ifndef __TYPES__
  25. #include <Types.h>
  26. #endif
  27. /*    #include <ConditionalMacros.h>                                */
  28.  
  29. #ifndef __QUICKDRAW__
  30. #include <Quickdraw.h>
  31. #endif
  32. /*    #include <MixedMode.h>                                        */
  33. /*    #include <QuickdrawText.h>                                    */
  34. /*        #include <ScriptLayout.h>                                */
  35.  
  36. #ifndef __COMPONENTS__
  37. #include <Components.h>
  38. #endif
  39.  
  40. #ifndef __CMAPPLICATION__
  41. #include <CMApplication.h>
  42. #endif
  43. /*    #include <Files.h>                                            */
  44. /*        #include <OSUtils.h>                                    */
  45. /*            #include <Memory.h>                                    */
  46. /*        #include <Finder.h>                                        */
  47. /*    #include <Printing.h>                                        */
  48. /*        #include <Errors.h>                                        */
  49. /*        #include <Dialogs.h>                                    */
  50. /*            #include <Windows.h>                                */
  51. /*                #include <Events.h>                                */
  52. /*                #include <Controls.h>                            */
  53. /*                    #include <Collections.h>                    */
  54. /*                    #include <Appearance.h>                        */
  55. /*                    #include <TextObjects.h>                    */
  56. /*                        #include <Unicode.h>                    */
  57. /*                    #include <Menus.h>                            */
  58. /*                #include <AppleEvents.h>                        */
  59. /*                    #include <EPPC.h>                            */
  60. /*                        #include <AppleTalk.h>                    */
  61. /*                        #include <PPCToolbox.h>                    */
  62. /*                        #include <Processes.h>                    */
  63. /*                    #include <Notification.h>                    */
  64. /*                        #include <Kernel.h>                        */
  65. /*                            #include <MachineExceptions.h>        */
  66. /*                            #include <Timing.h>                    */
  67. /*                #include <Drag.h>                                */
  68. /*                    #include <TextEdit.h>                        */
  69. /*    #include <CMICCProfile.h>                                    */
  70.  
  71. #ifdef __cplusplus
  72. extern "C" {
  73. #endif
  74.  
  75. #if GENERATINGPOWERPC
  76. #pragma options align=mac68k
  77. #endif
  78.  
  79. #ifdef __CFM68K__
  80. #pragma import on
  81. #endif
  82.  
  83.  
  84. enum {
  85.     CMPRInterfaceVersion        = 0
  86. };
  87.  
  88. /* Component function selectors */
  89. enum {
  90.     kCMPRGetProfile                = 0,
  91.     kCMPRSetProfile                = 1,
  92.     kCMPRSetProfileDescription    = 2,
  93.     kCMPRGetIndexedProfile        = 3,
  94.     kCMPRDeleteDeviceProfile    = 4
  95. };
  96.  
  97. extern pascal CMError CMGetProfile(ComponentInstance pr, CMProfileHandle aProfile, CMProfileHandle *returnedProfile)
  98.  FIVEWORDINLINE(0x2F3C, 8, 0, 0x7000, 0xA82A);
  99. extern pascal CMError CMSetProfile(ComponentInstance pr, CMProfileHandle newProfile)
  100.  FIVEWORDINLINE(0x2F3C, 4, 1, 0x7000, 0xA82A);
  101. extern pascal CMError CMSetProfileDescription(ComponentInstance pr, long DeviceData, CMProfileHandle hProfile)
  102.  FIVEWORDINLINE(0x2F3C, 8, 2, 0x7000, 0xA82A);
  103. extern pascal CMError CMGetIndexedProfile(ComponentInstance pr, CMProfileSearchRecordHandle search, CMProfileHandle *returnProfile, long *index)
  104.  FIVEWORDINLINE(0x2F3C, 12, 3, 0x7000, 0xA82A);
  105. extern pascal CMError CMDeleteDeviceProfile(ComponentInstance pr, CMProfileHandle deleteMe)
  106.  FIVEWORDINLINE(0x2F3C, 4, 4, 0x7000, 0xA82A);
  107.  
  108. #ifdef __CFM68K__
  109. #pragma import off
  110. #endif
  111.  
  112. #if GENERATINGPOWERPC
  113. #pragma options align=reset
  114. #endif
  115.  
  116. #ifdef __cplusplus
  117. }
  118. #endif
  119.  
  120. #endif /* __CMPRCOMPONENT__ */
  121.